"use client"

import { useRouter } from "next/navigation"
import { Button } from "./Button"

export const HomeButton = () => {
  const router = useRouter()

  const goHome = () => {
    router.push("/")
    // router.replace("/")
  }

  return (
    <Button onClick={goHome}>
      HOME
    </Button>
  )
}
